import request from '@/utils/request'

// 查询勤务部署基本信息列表
export function listDeployment(query) {
  return request({
    url: '/basicInformation/deployment/list',
    method: 'get',
    params: query
  })
}

// 查询勤务部署基本信息详细
export function getDeployment(id) {
  return request({
    url: '/basicInformation/deployment/' + id,
    method: 'get'
  })
}

// 新增勤务部署基本信息
export function addDeployment(data) {
  return request({
    url: '/basicInformation/deployment',
    method: 'post',
    data: data
  })
}

// 修改勤务部署基本信息
export function updateDeployment(data) {
  return request({
    url: '/basicInformation/deployment',
    method: 'put',
    data: data
  })
}

// 修改勤务部署基本信息
export function editExt(data) {
  return request({
    url: '/basicInformation/deployment/editExt',
    method: 'post',
    data: data
  })
}

// 删除勤务部署基本信息
export function delDeployment(id) {
  return request({
    url: '/basicInformation/deployment/' + id,
    method: 'delete'
  })
}

// 导出勤务部署基本信息
export function exportDeployment(query) {
  return request({
    url: '/basicInformation/deployment/export',
    method: 'get',
    params: query
  })
}

// 下载用户导入模板
export function importTemplate() {
  return request({
    url: '/basicInformation/deployment/importTemplate',
    method: 'get'
  })
}
